FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/python:3.9.22-slim-bookworm
LABEL maintainer="yuankun"
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple && \
    pip3 config set install.trusted-host mirrors.aliyun.com && \
    pip3 install kafka kafka-python==1.4.7 --no-cache-dir

COPY put_kafka_log.py /
CMD ["python3", "/put_kafka_log.py"]